#ifndef DRAWINGBOARD_H
#define DRAWINGBOARD_H

#include <QWidget>
#include <QPixmap>
#include <QPainter>

namespace Ui {
class DrawingBoard;
}

class DrawingBoard : public QWidget
{
    Q_OBJECT

public:
    explicit DrawingBoard(QWidget *parent = nullptr);
    ~DrawingBoard();

    void updateBoard(const QPixmap &pixmapPtr);

    void paintEvent(QPaintEvent *ev);
    void resizeEvent(QResizeEvent *ev);

private:
    Ui::DrawingBoard *ui;

    //画板
    QPixmap m_pixmap;
    QPainter m_painter;
    void initUI();



};

#endif // DRAWINGBOARD_H
